package framework;

import framework.maths.Rectangle;
import framework.maths.Vector2;

/**
 * Classe para objetos estáticos(que ficam parados).  
 */
public abstract class GameObject {
    public final Vector2 position;
    public final Rectangle bounds;
    
    public final Vector2 dimension;
    
    public GameObject(float x, float y, float width, float height) {
        this.dimension = new Vector2(width, height);
    	this.position = new Vector2(x,y);
        this.bounds = new Rectangle(x-width/2, y-height/2, width, height);
    }
    
    public abstract void update(float dealtatime);

	public Vector2 getPosition() {
		return position;
	}

	public Rectangle getBounds() {
		return bounds;
	}


    
}
